<?php
	session_start();
	mysql_connect("localhost", "sapmenet_admin", "a1s2d3f4g5h6j7") or die ("Problem with datebase");
	mysql_select_db("sapmenet_users");
	$inv=mysql_query("SELECT friendships.userID, friendships.id, users.FirstName, users.LastName, users.id, friendships.friendID FROM friendships JOIN users ON friendships.userID=users.id WHERE friendID={$_SESSION['JID']} AND confirmed=0");
	if (mysql_num_rows ($inv)==0)
	{
		echo "HUI";
	}
	else
	{
		echo"zaek";
	}
?>